// 所有请求接口
const install = (Vue, vm) => {
    // 评分配置列表
    let getScoreSetting = (params = {}) => vm.$u.get('get_score_setting' , params);
    let getStyle = (params = {}) => vm.$u.get('get_style' , params);
    let addScore = (params = {}) => vm.$u.post('add_score' , params);
    // 将各个定义的接口名称，统一放进对象挂载到vm.$u.api(因为vm就是this，也即this.$u.api)下
    vm.$u.api = { getScoreSetting,addScore,getStyle};
}

export default {
    install
}